package com.ivt.service;

import java.util.List;
import java.util.Set;

import com.ivt.core.ex.IvtException;
import com.ivt.model.Teacher;
import com.ivt.model.view.QueryCriteria;

public interface TeacherService {

	public Teacher create(Teacher teacher) throws IvtException;

	public Teacher update(Teacher teacher) throws IvtException;

	public long queryCount(QueryCriteria queryCriteria) throws IvtException;

	public List<Teacher> queryByCriteria(QueryCriteria queryCriteria)
			throws IvtException;

	public Teacher delete(Long id) throws IvtException;

	public int deletes(Long[] ids) throws IvtException;

	public Teacher getTeacher(Long id) throws IvtException;

	public List<Teacher> getTeachers(Set<Long> id) throws IvtException;

	public Teacher login(String username, String password) throws IvtException;
}
